﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcDDshop2.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            List<Book> books1 = BLL.Bll.books_typeid_top4(1);
            List<Book> books2 = BLL.Bll.books_typeid_top4(2);
            List<Book> books3 = BLL.Bll.books_typeid_top4(3);
            List<Book> books4 = BLL.Bll.books_typeid_top4(4);
            List<Book> books5 = BLL.Bll.books_typeid_top4(5);
            List<Book> books6 = BLL.Bll.books_typeid_top4(6);
            ViewBag.books1 = books1;
            ViewBag.books2 = books2;
            ViewBag.books3 = books3;
            ViewBag.books4 = books4;
            ViewBag.books5 = books5;
            ViewBag.books6 = books6;
            return View();
        }
    }
}
